<template>
  <router-view v-slot="{ Component }">
    <transition>
      <div>
        <keep-alive>
          <component :is="Component" />
        </keep-alive>
      </div>
    </transition>
  </router-view>
</template>

<script>
import myAxios from './myAxios/myAxios';
export default {
  name: 'app',
  setup () {
    let click = function () {
      myAxios.get('获取工厂').then(res => {
        console.log('res :>> ', res);
      });
    };
    return { click };
  },
}
</script>

<style>
.el-message-box__message p {
  word-break: break-all;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
</style>
